import http from "./request";
// 登录接口
const login = async (formdata) => {
    let data = await http({
        method: 'post',
        url: `/admin/login`,
        params: {
            username: formdata.username,
            password: formdata.password
        }
    })
    return data
}

// const login = async (user) => {
//     let data = await http({
//         url: '/admin/login',
//         method: 'post',
//         params: {
//             username: user.username,
//             password: user.password
//         }
//     })
//     console.log(data);
//     return data
// }

export {
    login
}